import { request } from '../request/request.js'

export const GetTripshop = (tripshopid,userid) => {
    return request.get(`/tripshop/detail?tripshopid=${tripshopid}&userid=${userid}`);
}
export const GetTripDateTicket = (tripshopid) => {
	return request.get(`/tripshop/today?tripshopid=${tripshopid}`)
}
export const GetTripshopList = (loopId) => {
	return request.get(`/tripshop/show?loopid=${loopId}`)
}
//创建订单
export const CreateOrder =(itForm) =>{
	return request.post(`/createOrder`,itForm)
}
//支付接口
export const wechatPay =(itForm) =>{
	return request.post(`/wechatPay`,itForm)
}

// 商品收藏
export const postShopFavorite =(FavoriteInfo) =>{
	return request.post(`/tripshop/collect`,FavoriteInfo)
}